import React ,{useState} from 'react'
import {Button} from 'antd'

export default function UseState() {
  let [count,setCount] = useState(0) 
  return (
    <div>
      <h2>useState</h2> 
      <Button type='primary' danger onClick={() => setCount(count + 1)}>点击{count}</Button>
    </div>
  )
}
